import request from '@/services/request'
/**
 * 新增收藏接口
 * @param productId string
 * @returns
 */
export const addCollectService = (productId: number | string | undefined) => {
  return request.post('/user/api/v1/collect/add', { productId })
}

/**
 * 取消收藏接口
 * @param productId string
 * @returns
 */
export const cancelCollectService = (productId: number) => {
  return request.delete('/user/api/v1/collect/delete', { productId })
}

/**
 * 返回收藏列表接口
 * @param
 * @returns
 */
export const getCollectService = () => {
  return request.get('/user/api/v1/collect/show')
}
